package com.management.demo.common.enums;

/**
 * 整形布尔值枚举
 */
public enum BooleanEnum {

    YES(1, "是"),
    NO(0, "否");

    private final Integer code;

    private final String desc;

    BooleanEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
